﻿using System;

namespace SAFPodcast.WP8.Fwk.Helper
{
    public class ExceptionRaisedEventArgs : EventArgs
    {
        public String Message { get; private set; }
        public Exception Exception { get; private set; }

        public ExceptionRaisedEventArgs(String message, Exception exception)
        {
            Message = message;
            Exception = exception;
        }

        public override string ToString()
        {
            return String.Format("Message: {0} \nException: {1}", Message, Exception.NullsafeToString());
        }
    }
}
